/* -------------------------
 * Denise Pollock
 * Homework 3
 * 7/8/14
 * testing outpost card
 * -------------------------
 */

#include "dominion.h"
#include "dominion_helpers.h"
#include <string.h>
#include <stdio.h>
#include <assert.h>
#include "rngs.h"

int main()
{
	struct gameState state;
	int numPlayer = 2;
	int p, r, i, test, handPos, choice1, choice2, choice3, bonus;
	int seed = 1000;
	int k[10] = {outpost, council_room, feast, gardens, mine, remodel, smithy, village, baron, great_hall};

	memset(&state, 23, sizeof(struct gameState));
	r = initializeGame(numPlayer, k, seed, &state);

	handPos = 2;
	printf("Testing outpost\n");

	printf("Testing outpost flag\n");
	test = (state.outpostPlayed) + 1;
	cardEffect(k[0], choice1, choice2, choice3, &state, handPos, &bonus);
	p = state.outpostPlayed;
	assert(test == p);

	printf("Testing discard\n");
	test=numHandCards(&state);
	cardEffect(k[0], choice1, choice2, choice3, &state, handPos, &bonus);
	p = numHandCards(&state);
	assert (test -1 == p);

	printf("Testing Return value\n");
	test = cardEffect(k[0], choice1, choice2, choice3, &state, handPos, &bonus);
	assert (test == 0);

	printf("All tests passed\n");
}

/*
     case outpost:
      //set outpost flag
      state->outpostPlayed++;

      //discard card
      discardCard(handPos, currentPlayer, state, 0);
      return 0;
 */
